FROM {{ namespace }}/{{ image_prefix }}prometheus-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}

{% block prometheus_openstack_exporter_header %}{% endblock %}

{% block prometheus_openstack_exporter_install %}
ADD prometheus-openstack-exporter-archive /prometheus-openstack-exporter-source

RUN mkdir /opt/openstack-exporter \
    && cp /prometheus-openstack-exporter-source/openstack-exporter /opt/openstack-exporter/
{% endblock %}

{% block prometheus_openstack_exporter_footer %}{% endblock %}
{% block footer %}{% endblock %}

USER prometheus
